<template>
	<view>
		<cu-custom bgColor="bg-gradual-blue" :isBack="true">
			<block slot="backText">返回</block>
			<block slot="content">任务审核</block>
		</cu-custom>
		<scroll-view scroll-y class="page" >
			<view style="height: 10rpx;"></view>
			  <u-task v-for="(item,index) in dataList" :key="index" :data="item">
			</u-task>
		</scroll-view>
	</view>
</template>

<script>
	import uTask from '../../components/u-audit/u-task.vue'
	
	export default {
		data() {
			return {
				dataList:[]
			}
		},
		onShow: function() {
			this.loadData();
			// this.loadGroup();
		},
		components:{
			uTask
		},
		methods: {
			loadData() {
				uni.request({
					url: this.$http + '/biz/bizTask/list?page=1&limit=10000&status=101&status2=101&link=AUDIT',
					header: {
						token: uni.getStorageSync("token")
					},
					method: 'GET',
					success: (res) => {
						if (res.statusCode == 200 && res.data.code == 0) {
							this.dataList = res.data.page.list;
						} else {
							uni.showToast({
								icon: 'none',
								title: '查询数据失败，请重试！'
							});
						}
					},
					fail: function() {
						uni.showToast({
							icon: 'none',
							title: '服务器请求超时！'
						});
					}
				})
			},
		}
	}
</script>

<style>

</style>
